using System;
using System.Collections.Generic;

namespace Clandestine.Engines.Field
{
	public class ObjectList : List<Object>
	{
		public Map Map { get; private set; }
		public Level Level { get; private set; }
	
		private bool visible = true;
		public bool Visible
		{
			get { return visible; }
			set
			{
				visible = value;
				
				foreach (Object o in this)
					o.Visible = value;
			}
		}
	
		public ObjectList(Map map, Level level) : base()
		{
			this.Map = map;
			this.Level = level;
		}
	}
}

